<script setup>
import { createMessage } from '@/components/Message/methods'
import Button from '@/components/Button/Button.vue'
const open = (type) => {
  createMessage({ message: 'hello world', type,icon:"fa-car" })
}
</script>
<template>
<div class="basic block">
  <Button @click="open('success')" type="success"> Success </Button>
  <Button @click="open('info')" type="info"> Info </Button>
  <Button @click="open('warning')" type="warning"> warning </Button>
  <Button @click="open('danger')" type="danger"> Danger </Button>
</div>
</template>